## 
## -------------------------------------------------------------
##    Copyright 2004-2009 Synopsys, Inc.
##    All Rights Reserved Worldwide
## 
##    Licensed under the Apache License, Version 2.0 (the
##    "License"); you may not use this file except in
##    compliance with the License.  You may obtain a copy of
##    the License at
## 
##        http://www.apache.org/licenses/LICENSE-2.0
## 
##    Unless required by applicable law or agreed to in
##    writing, software distributed under the License is
##    distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
##    CONDITIONS OF ANY KIND, either express or implied.  See
##    the License for the specific language governing
##    permissions and limitations under the License.
## -------------------------------------------------------------
##

ifdef VMM_HOME
OPTS = +define+VMM_12 +incdir+$(VMM_HOME)/sv
else
OPTS = +define+VMM_12 -ntb_opts rvm
endif

all: clean comp run

clean:
	rm -rf simv* csrc vc_hdrs.h .vcsmx_rebuild *.log *.dat *.log work/* *.svshell *~

comp:
	vcs -sverilog   $(OPTS) +plusarg_save opts_basic.sv -l comp.log

run:
	simv +vmm_opts+i1=1+b1+s1=x+iy=5+ii=9 +vmm_i2=2 +vmm_b2 +vmm_s2=y +vmm_iz=5 +vmm_ii=5 +vmm_opts_file+./basic.opt1+./basic.opt2 -l run.log 

